﻿@if (Request.IsAuthenticated)
{
  <ul>
     <li>
        <div class="edit">
            Hello,@Html.ActionLink(User.Identity.Name, "Manage", "Account", routeValues: null, htmlAttributes: new { @class = "username", title = "Manage" })
        </div>
    </li>
      <li>
        <div class="logout">
         @using (Html.BeginForm("LogOff", "Account", FormMethod.Post, new { id = "logoutForm" })) {
              @Html.AntiForgeryToken()
               <a href="javascript:document.getElementById('logoutForm').submit()">Log off</a>
            }
        </div>
     </li>
      </ul>
}
